<#ftl output_format="HTML" auto_esc=true>
<@h.commonHead title="后台管理系统" keywords="开源,永久免费" description="springrain开源系统管理后台"/>
<SCRIPT type="text/javascript">
	var dicDataSelectSetting = {
			callback: {
				onClick: clickDicDataValue
			},
		data : {
			simpleData : {
				enable : true,
				idKey : "id",
				pIdKey : "pid",
				rootPId : "null",
			}
		}
	};
	
	
	function clickDicDataValue(event, treeId, treeNode) {
		/*
		jQuery("#pname").val(treeNode.name);
		jQuery("#pid").val(treeNode.id);
	    */
	    
	};
	function getSelect(){
		var treeObj=$.fn.zTree.getZTreeObj("dicDataTree");
		return treeObj.getSelectedNodes();
	}
	

	$(document).ready(function() {
		jQuery.post("${ctx}/system/dicdata/${returnDatas.data.typekey}/list/json?page=false",
				function(_json) {
					if (_json.status == "success") {
						$.fn.zTree.init($("#dicDataTree"), dicDataSelectSetting,_json.data);
					} else {
						myalert(_json.message);
					}
				});
	});
</SCRIPT>




<div>
	<ul id="dicDataTree" class="ztree"></ul>
</div>
